package com.angel.mocks.data.generator.dataGenerator;

import java.io.Serializable;
import java.util.Collection;

import com.angel.dao.generic.factory.DAOFactory;
import com.angel.dao.generic.interfaces.GenericDAO;
import com.angel.data.generator.interfaces.DataGenerator;

/**
 *
 * @author William
 */
public class ConfigurationParameterGenerator implements DataGenerator {
    /**
	 *
	 */
	private static final long serialVersionUID = -9016187611831969598L;

	@SuppressWarnings("unchecked")
	public Class<? extends DataGenerator>[] getDependecesGenerators() {
        return (Class<? extends DataGenerator>[]) new Class[0];
    }

    public void generateData(Collection<Object> objects, DAOFactory daoFactory) {
//        ConfigurationParameter parameter1 = new ConfigurationParameter();
//        parameter1.setName("DOLLAR_PESOS");
//        parameter1.setDescription("Conversion parameter between dollar and argentinian pesos.");
//        parameter1.setLongValue(370L);
//        objects.add(parameter1);
//
//        ConfigurationParameter parameter2 = new ConfigurationParameter();
//        parameter2.setName("EURO_PESPS");
//        parameter2.setDescription("Conversion parameter between euro and argentinian pesos.");
//        parameter2.setLongValue(450L);
//        objects.add(parameter2);
    }

    public Class<? extends Object> getDataGeneratorClass() {
        return Object.class;
    }

    public GenericDAO<Object, Serializable> getGenericDAO() {
        //return (GenericDAO<Object, Serializable>) ApplicationContextSpring.createInstance().prepareApplicationContext().getBean("configurationParameterDAO");
    	return null;
    }
    public Class<?> thisDataGeneratorClass() {
		return this.getClass();
	}
}